package com.etcn.common.Enum;

/**
 * 时间格式
 * @author: guozc
 * @date: 2016-09-01
 */
public enum DateFormat {
	
	/**
	 * {@code yyyy-MM-dd Y_M_D}.
	 */
	Y_M_D("yyyy-MM-dd", "Y_M_D"),
	
	/**
	 * {@code yyyy-MM-dd HH:mm Y_M_D_HM}.
	 */
	Y_M_D_HM("yyyy-MM-dd HH:mm","Y_M_D_HM"),
	
	/**
	 * {@code yyyy-MM-dd HH:mm:ss Y_M_D_HMS}.
	 */
	Y_M_D_HMS("yyyy-MM-dd HH:mm:ss","Y_M_D_HMS"),
	
	/**
	 * {@code yyyyMMdd YMD}.
	 */
	YMD("yyyyMMdd","YMD"),
	
	/**
	 * {@code yyyyMMddHHmm YMDHM}.
	 */
	YMDHM("yyyyMMddHHmm","YMDHM"),
	
	/**
	 * {@code yyyyMMddHHmmss YMDHMS}.
	 */
	YMDHMS("yyyyMMddHHmmss","YMDHMS"),
	
	/**
	 * {@code yyyy/MM/dd ymd}.
	 */
	ymd("yyyy/MM/dd","ymd"),
	
	/**
	 * {@code yyyy/MM/dd HH:mm ymd_HM}.
	 */
	ymd_HM("yyyy/MM/dd HH:mm","ymd_HM"),
	
	/**
	 * {@code yyyy/MM/dd HH:mm:ss ymd_HMS}.
	 */
	ymd_HMS("yyyy/MM/dd HH:mm:ss","ymd_HMS"),
	
	/**
	 * {@code yyyy yyyy}.
	 */
	YYYY("yyyy","yyyy");
	
	private final String value;

	private final String reasonPhrase;

	private DateFormat(String value, String reasonPhrase) {
		this.value = value;
		this.reasonPhrase = reasonPhrase;
	}

	public String value() {
		return this.value;
	}

	public String reasonPhrase() {
		return reasonPhrase;
	}

}
